﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using MvcApplicationYoung.Models;

namespace MvcApplicationYoung.WcfServiceLibrary
{
    [ServiceContract]
    public interface IService1
    {
        //[OperationContract]
        //string GetData(string value);

        [OperationContract]
        string GetMenuesXMLJson();

        [OperationContract]
        string GetTableJson(string objectID, string objectType);

        [OperationContract]
        bool CheckUser(string usr, string pwd);

        [OperationContract]
        string UpdateEmployeeRow(string commitType,string modifyEmployeeRow);

        [OperationContract]
        string UpdateDepartmentRow(string commitType, string modifyDepartmentRow);
     
    }

    //[ServiceContract]
    //public interface IService2
    //{
    //    [OperationContract]
    //    [WebGet(UriTemplate = "Tasks/Xml", ResponseFormat = WebMessageFormat.Xml)]
    //    string GetMenuesXMLJson();

    //    [OperationContract]
    //    string GetTableJson(string objectID, string objectType);

    //    [OperationContract]
    //    bool CheckUser(string usr, string pwd);

    //}

}
